using System.ComponentModel.DataAnnotations;

namespace RAGApp.Api.Models;

public class Conversation
{
    public Guid Id { get; set; }
    
    public Guid UserId { get; set; }
    
    [MaxLength(255)]
    public string? Title { get; set; }
    
    public DateTime CreatedAt { get; set; }
    
    public DateTime UpdatedAt { get; set; }
    
    // Navigation property
    public ICollection<Message> Messages { get; set; } = new List<Message>();
} 